package org.wz.complex.work.controller.auth.sysinfo;

import jakarta.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import org.wz.complex.work.bean.Res;
import org.wz.complex.work.controller.base.BaseController;
import org.wz.complex.work.entity.auth.sysinfo.SysinfoRole;
import org.wz.complex.work.service.auth.sysinfo.SysinfoRoleService;

import java.util.List;


@RestController
@RequestMapping("/auth/sysinfo/role")
public class SysinfoRoleController extends BaseController<SysinfoRole, Object> {

    @Resource
    private SysinfoRoleService service;


    @GetMapping("/role_by_token_id/{tokenId}")
    public Res roleByTokenId(@PathVariable String tokenId) {
        SysinfoRole role = service.roleByTokenId(tokenId);
        return Res.ok(role);
    }

}



